package Day09.Demo13;

/**
 * @author hyhWTX
 * @version 1.0
 * @date 2022年03月01日 18:28
 */


public class DemoMain {
    public static void main(String[] args) {

//        Animal animal = new Animal();//错误写法

//        Dog dog = new Dog();//错误写法
        Dog2B ha = new Dog2B();//这是普通类
        ha.eat();
        ha.sleep();
        System.out.println("==============");
        GodDog godDog = new GodDog();
        godDog.eat();
        godDog.sleep();
    }
}
